<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>{$zhu.name}安置情况</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css"  media="all">
    <link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.min.css" media="all" />
    <link rel="stylesheet" href="__CSS__/admin.css"  media="all">
    <style type="text/css">
        /* tooltip */
        #tooltip{
            position:absolute;
            border:1px solid #ccc;
            background:#333;
            padding:2px;
            display:none;
            color:#fff;
        }
    </style>
</head>
<body style="padding:10px;">
<div class="tplay-body-div">
    <div class="layui-tab">
        <ul class="layui-tab-title">
            <li class="a_menu"><a href="{:url('admin/anzhi/xy')}" >协议安置</a></li>
            <li class="layui-this">{$zhu.name}安置情况</li>
        </ul>
    </div>


    <form class="layui-form" id="admin">


        <h2 align="center" style="margin-top: 58px;">协议安置情况</h2>

        <input type="hidden" name="uid" value="{$id}">
        <table class="layui-table" id="table" lay-filter="test1" lay-size="lg">
            <tr >
                <td valign="center" ><p align="center" >协议安置面积</p></td>
                <td valign="center" ><p align="center" ><strong>面积</strong></p></td>
                <td valign="center"  ><p align="center" ><strong>额外补偿面积</strong></p></td>
                <td valign="center"  ><p align="center" ><strong>面积</strong></p></td>
                <td valign="center" ><p align="center" ><strong>合计</strong></p></td>
                <td valign="center" ><p align="center" ><strong>面积</strong></p></td>
                <td valign="center" ><p align="center" ><strong>单价</strong></p></td>
                <td valign="center" ><p align="center" ><strong>货币化金额</strong></p></td>
                <td valign="center"  ><p align="center" ><strong>备注</strong></p></td>
            </tr>

            <div id="number">
                <tr >
                    <td valign="center" ><p align="center" >应得安置楼面积 </p></td>
                    <td valign="center" ><p align="center" ><input name="ydazlmj1" lay-verify="required" {notempty name="$info.ydazlmj1"}value="{$info.ydazlmj1}"{/notempty} autocomplete="off" class="layui-input" type="text"> </p></td>
                    <td valign="center" ><p align="center" >应得安置楼面积</p></td>
                    <td valign="center" ><input name="ydazlmj2" lay-verify="required" {notempty name="$info.ydazlmj2"}value="{$info.ydazlmj2}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                    <td valign="center" >应得安置楼面积</td>
                    <td valign="center" ><input name="ydazlmj3" lay-verify="required" {notempty name="$info.ydazlmj3"}value="{$info.ydazlmj3}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                    <td valign="center" ><input name="yddj" lay-verify="required" {notempty name="$info.yddj"}value="{$info.yddj}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                    <td valign="center" ><input name="ydmoney" readonly id="ydmoney" lay-verify="required" {notempty name="$info.ydmoney"}value="{$info.ydmoney}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                    <td valign="center" ><input name="ydazlmj4" lay-verify="required" {notempty name="$info.ydazlmj4"}value="{$info.ydazlmj4}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>

                </tr>



                <tr >
                    <td valign="center" ><p align="center" >平价购买面积 </p></td>
                    <td valign="center" ><p align="center" ><input name="pjmj1" lay-verify="required" {notempty name="$info.pjmj1"}value="{$info.pjmj1}"{/notempty} autocomplete="off" class="layui-input" type="text"> </p></td>
                    <td valign="center" ><p align="center" >平价购买面积</p></td>
                    <td valign="center" ><input name="pjmj2" lay-verify="required" {notempty name="$info.pjmj2"}value="{$info.pjmj2}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                    <td valign="center" >平价购买面积</td>
                    <td valign="center" ><input name="pjmj3" lay-verify="required" {notempty name="$info.pjmj3"}value="{$info.pjmj3}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                    <td valign="center" ><input name="pjdj" lay-verify="required" {notempty name="$info.pjdj"}value="{$info.pjdj}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                    <td valign="center" ><input name="pjmoney" readonly id="pjmoney" lay-verify="required" {notempty name="$info.pjmoney"}value="{$info.pjmoney}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                    <td valign="center" ><input name="pjmj4" lay-verify="required" {notempty name="$info.pjmj4"}value="{$info.pjmj4}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                </tr>



                <tr >
                    <td valign="center" ><p align="center" >保障房面积 </p></td>
                    <td valign="center" ><p align="center" ><input name="bzfmj1" lay-verify="required" {notempty name="$info.bzfmj1"}value="{$info.bzfmj1}"{/notempty} autocomplete="off" class="layui-input" type="text"> </p></td>
                    <td valign="center" ><p align="center" >保障房面积</p></td>
                    <td valign="center" ><input name="bzfmj2" lay-verify="required" {notempty name="$info.bzfmj2"}value="{$info.bzfmj2}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                    <td valign="center" >保障房面积</td>
                    <td valign="center" ><input name="bzfmj3" lay-verify="required" {notempty name="$info.bzfmj3"}value="{$info.bzfmj3}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                    <td valign="center" ><input name="bzfdj" lay-verify="required" {notempty name="$info.bzfdj"}value="{$info.bzfdj}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                    <td valign="center" ><input name="bzfmoney" readonly id="bzfmoney" lay-verify="required" {notempty name="$info.bzfmoney"}value="{$info.bzfmoney}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                    <td valign="center" ><input name="bzfmj4" lay-verify="required" {notempty name="$info.bzfmj4"}value="{$info.bzfmj4}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                </tr>



                <tr >
                    <td valign="center" ><p align="center" >停车位 </p></td>
                    <td valign="center" ><p align="center" ><input name="tcwmj1" lay-verify="required" {notempty name="$info.tcwmj1"}value="{$info.tcwmj1}"{/notempty} autocomplete="off" class="layui-input" type="text"> </p></td>
                    <td valign="center" ><p align="center" >停车位</p></td>
                    <td valign="center" ><input name="tcwmj2" lay-verify="required" {notempty name="$info.tcwmj2"}value="{$info.tcwmj2}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                    <td valign="center" >停车位</td>
                    <td valign="center" ><input name="tcwmj3" lay-verify="required" {notempty name="$info.tcwmj3"}value="{$info.tcwmj3}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                    <td valign="center" ><input name="tcwdj" lay-verify="required" {notempty name="$info.tcwdj"}value="{$info.tcwdj}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                    <td valign="center" ><input name="tcwmoney" readonly id="tcwmoney" lay-verify="required" {notempty name="$info.tcwmoney"}value="{$info.tcwmoney}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                    <td valign="center" ><input name="tcwmj4" lay-verify="required" {notempty name="$info.tcwmj4"}value="{$info.tcwmj4}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                </tr>


                <tr >
                    <td valign="center" ><p align="center" >地下储物室 </p></td>
                    <td valign="center" ><p align="center" ><input name="dxmj1" lay-verify="required" {notempty name="$info.dxmj1"}value="{$info.dxmj1}"{/notempty} autocomplete="off" class="layui-input" type="text"> </p></td>
                    <td valign="center" ><p align="center" >地下储物室</p></td>
                    <td valign="center" ><input name="dxmj2" lay-verify="required" {notempty name="$info.dxmj2"}value="{$info.dxmj2}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                    <td valign="center" >地下储物室</td>
                    <td valign="center" ><input name="dxmj3" lay-verify="required" {notempty name="$info.dxmj3"}value="{$info.dxmj3}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                    <td valign="center" ><input name="dxdj" lay-verify="required" {notempty name="$info.dxdj"}value="{$info.dxdj}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                    <td valign="center" ><input name="dxmoney" readonly id="dxmoney" lay-verify="required" {notempty name="$info.dxmoney"}value="{$info.dxmoney}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                    <td valign="center" ><input name="dxmj4" lay-verify="required" {notempty name="$info.dxmj4"}value="{$info.dxmj4}"{/notempty} autocomplete="off" class="layui-input" type="text"></td>
                </tr>


            </div>
            <tr >

                <td valign="center" ><p align="center" ><strong>合  计 </strong></p></td>
                <td valign="center" colspan="8"><input readonly name="allMoney" id="sum" lay-verify="required" {notempty name="$allMoney"}value="{$allMoney}"{/notempty} readonly autocomplete="off" class="layui-input" type="text"></td>

            </tr>
        </table>
        <?php if(!in_array($admin_cate_id,$operation)){ ?>
        <div class="layui-form-item" style="text-align:center">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="admin">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
        <?php } ?>
    </form>
    <div style="padding:0 20px;"></div>
</div>



<script src="__PUBLIC__/layui/layui.js"></script>
<script src="__PUBLIC__/jquery/jquery.min.js"></script>
<script>

    $("input[name=bzfmj1]").blur(function(){
        var value1= $('input[name=bzfmj1]').val();
        var value2= $('input[name=bzfmj2]').val();
        var value3= $('input[name=bzfmj3]').val();
        var value = parseFloat(value1) + parseFloat(value2) + parseFloat(value3);
        var dxdj= $('input[name=bzfdj]').val();
        var sumValue= value * parseFloat(dxdj);
        sumValue = sumValue.toFixed(2);
        if(sumValue>0){
            $('#bzfmoney').val(sumValue);

            var sum1 = $('#pjmoney').val();
            var sum2 = $('#ydmoney').val();
            var sum3 = $('#tcwmoney').val();
            var sum4 = $('#dxmoney').val();
            var sum = parseFloat(sum1) + parseFloat(sum2)+ parseFloat(sum3)+ parseFloat(sum4)+parseFloat(sumValue);
            sum = sum.toFixed(2);
            $('#sum').val(sum);

        }else{
            $('#bzfmoney').val(0);
        }
    })

    $("input[name=bzfmj2]").blur(function(){
        var value1= $('input[name=bzfmj1]').val();
        var value2= $('input[name=bzfmj2]').val();
        var value3= $('input[name=bzfmj3]').val();
        var value = parseFloat(value1) + parseFloat(value2) + parseFloat(value3);
        var dxdj= $('input[name=bzfdj]').val();
        var sumValue= value * parseFloat(dxdj);
        sumValue = sumValue.toFixed(2);
        if(sumValue>0){
            $('#bzfmoney').val(sumValue);
            var sum1 = $('#pjmoney').val();
            var sum2 = $('#ydmoney').val();
            var sum3 = $('#tcwmoney').val();
            var sum4 = $('#dxmoney').val();
            var sum = parseFloat(sum1) + parseFloat(sum2)+ parseFloat(sum3)+ parseFloat(sum4)+parseFloat(sumValue);
            sum = sum.toFixed(2);
            $('#sum').val(sum);
        }else{
            $('#bzfmoney').val(0);
        }
    })

    $("input[name=bzfmj3]").blur(function(){
        var value1= $('input[name=bzfmj1]').val();
        var value2= $('input[name=bzfmj2]').val();
        var value3= $('input[name=bzfmj3]').val();
        var value = parseFloat(value1) + parseFloat(value2) + parseFloat(value3);
        var dxdj= $('input[name=bzfdj]').val();
        var sumValue= value * parseFloat(dxdj);
        sumValue = sumValue.toFixed(2);
        if(sumValue>0){
            $('#bzfmoney').val(sumValue);
            var sum1 = $('#pjmoney').val();
            var sum2 = $('#ydmoney').val();
            var sum3 = $('#tcwmoney').val();
            var sum4 = $('#dxmoney').val();
            var sum = parseFloat(sum1) + parseFloat(sum2)+ parseFloat(sum3)+ parseFloat(sum4)+parseFloat(sumValue);
            sum = sum.toFixed(2);
            $('#sum').val(sum);
        }else{
            $('#bzfmoney').val(0);
        }
    })

    $("input[name=bzfdj]").blur(function(){
        var value1= $('input[name=bzfmj1]').val();
        var value2= $('input[name=bzfmj2]').val();
        var value3= $('input[name=bzfmj3]').val();
        var value = parseFloat(value1) + parseFloat(value2) + parseFloat(value3);
        var dxdj= $('input[name=bzfdj]').val();
        var sumValue= value * parseFloat(dxdj);
        sumValue = sumValue.toFixed(2);
        if(sumValue>0){
            $('#bzfmoney').val(sumValue);
            var sum1 = $('#pjmoney').val();
            var sum2 = $('#ydmoney').val();
            var sum3 = $('#tcwmoney').val();
            var sum4 = $('#dxmoney').val();
            var sum = parseFloat(sum1) + parseFloat(sum2)+ parseFloat(sum3)+ parseFloat(sum4)+parseFloat(sumValue);
            sum = sum.toFixed(2);
            $('#sum').val(sum);
        }else{
            $('#bzfmoney').val(0);
        }
    })



    $("input[name=pjmj1]").blur(function(){
        var value1= $('input[name=pjmj1]').val();
        var value2= $('input[name=pjmj2]').val();
        var value3= $('input[name=pjmj3]').val();
        var value = parseFloat(value1) + parseFloat(value2) + parseFloat(value3);
        var dxdj= $('input[name=pjdj]').val();
        var sumValue= value * parseFloat(dxdj);
        sumValue = sumValue.toFixed(2);
        if(sumValue>0){
            $('#pjmoney').val(sumValue);
            var sum1 = $('#bzfmoney').val();
            var sum2 = $('#ydmoney').val();
            var sum3 = $('#tcwmoney').val();
            var sum4 = $('#dxmoney').val();
            var sum = parseFloat(sum1) + parseFloat(sum2)+ parseFloat(sum3)+ parseFloat(sum4)+parseFloat(sumValue);
            sum = sum.toFixed(2);
            $('#sum').val(sum);
        }else{
            $('#pjmoney').val(0);
        }
    })

    $("input[name=pjmj2]").blur(function(){
        var value1= $('input[name=pjmj1]').val();
        var value2= $('input[name=pjmj2]').val();
        var value3= $('input[name=pjmj3]').val();
        var value = parseFloat(value1) + parseFloat(value2) + parseFloat(value3);
        var dxdj= $('input[name=pjdj]').val();
        var sumValue= value * parseFloat(dxdj);
        sumValue = sumValue.toFixed(2);
        if(sumValue>0){
            $('#pjmoney').val(sumValue);
            var sum1 = $('#bzfmoney').val();
            var sum2 = $('#ydmoney').val();
            var sum3 = $('#tcwmoney').val();
            var sum4 = $('#dxmoney').val();
            var sum = parseFloat(sum1) + parseFloat(sum2)+ parseFloat(sum3)+ parseFloat(sum4)+parseFloat(sumValue);
            sum = sum.toFixed(2);
            $('#sum').val(sum);
        }else{
            $('#pjmoney').val(0);
        }
    })

    $("input[name=pjmj3]").blur(function(){
        var value1= $('input[name=pjmj1]').val();
        var value2= $('input[name=pjmj2]').val();
        var value3= $('input[name=pjmj3]').val();
        var value = parseFloat(value1) + parseFloat(value2) + parseFloat(value3);
        var dxdj= $('input[name=pjdj]').val();
        var sumValue= value * parseFloat(dxdj);
        sumValue = sumValue.toFixed(2);
        if(sumValue>0){
            $('#pjmoney').val(sumValue);
            var sum1 = $('#bzfmoney').val();
            var sum2 = $('#ydmoney').val();
            var sum3 = $('#tcwmoney').val();
            var sum4 = $('#dxmoney').val();
            var sum = parseFloat(sum1) + parseFloat(sum2)+ parseFloat(sum3)+ parseFloat(sum4)+parseFloat(sumValue);
            sum = sum.toFixed(2);
            $('#sum').val(sum);
        }else{
            $('#pjmoney').val(0);
        }
    })


    $("input[name=pjdj]").blur(function(){
        var value1= $('input[name=pjmj1]').val();
        var value2= $('input[name=pjmj2]').val();
        var value3= $('input[name=pjmj3]').val();
        var value = parseFloat(value1) + parseFloat(value2) + parseFloat(value3);
        var dxdj= $('input[name=pjdj]').val();
        var sumValue= value * parseFloat(dxdj);
        sumValue = sumValue.toFixed(2);
        if(sumValue>0){
            $('#pjmoney').val(sumValue);
            var sum1 = $('#bzfmoney').val();
            var sum2 = $('#ydmoney').val();
            var sum3 = $('#tcwmoney').val();
            var sum4 = $('#dxmoney').val();
            var sum = parseFloat(sum1) + parseFloat(sum2)+ parseFloat(sum3)+ parseFloat(sum4)+parseFloat(sumValue);
            sum = sum.toFixed(2);
            $('#sum').val(sum);
        }else{
            $('#pjmoney').val(0);
        }
    })




    $("input[name=ydazlmj1]").blur(function(){
        var value1= $('input[name=ydazlmj1]').val();
        var value2= $('input[name=ydazlmj2]').val();
        var value3= $('input[name=ydazlmj3]').val();
        var value = parseFloat(value1) + parseFloat(value2) + parseFloat(value3);
        var dxdj= $('input[name=yddj]').val();
        var sumValue= value * parseFloat(dxdj);
        sumValue = sumValue.toFixed(2);
        if(sumValue>0){
            $('#ydmoney').val(sumValue);
            var sum1 = $('#bzfmoney').val();
            var sum2 = $('#pjmoney').val();
            var sum3 = $('#tcwmoney').val();
            var sum4 = $('#dxmoney').val();
            var sum = parseFloat(sum1) + parseFloat(sum2)+ parseFloat(sum3)+ parseFloat(sum4)+parseFloat(sumValue);
            sum = sum.toFixed(2);
            $('#sum').val(sum);
        }else{
            $('#ydmoney').val(0);
        }
    })

    $("input[name=ydazlmj2]").blur(function(){
        var value1= $('input[name=ydazlmj1]').val();
        var value2= $('input[name=ydazlmj2]').val();
        var value3= $('input[name=ydazlmj3]').val();
        var value = parseFloat(value1) + parseFloat(value2) + parseFloat(value3);
        var dxdj= $('input[name=yddj]').val();
        var sumValue= value * parseFloat(dxdj);
        sumValue = sumValue.toFixed(2);
        if(sumValue>0){
            $('#ydmoney').val(sumValue);
            var sum1 = $('#bzfmoney').val();
            var sum2 = $('#pjmoney').val();
            var sum3 = $('#tcwmoney').val();
            var sum4 = $('#dxmoney').val();
            var sum = parseFloat(sum1) + parseFloat(sum2)+ parseFloat(sum3)+ parseFloat(sum4)+parseFloat(sumValue);
            sum = sum.toFixed(2);
            $('#sum').val(sum);
        }else{
            $('#ydmoney').val(0);
        }
    })

    $("input[name=ydazlmj3]").blur(function(){
        var value1= $('input[name=ydazlmj1]').val();
        var value2= $('input[name=ydazlmj2]').val();
        var value3= $('input[name=ydazlmj3]').val();
        var value = parseFloat(value1) + parseFloat(value2) + parseFloat(value3);
        var dxdj= $('input[name=yddj]').val();
        var sumValue= value * parseFloat(dxdj);
        sumValue = sumValue.toFixed(2);
        if(sumValue>0){
            $('#ydmoney').val(sumValue);
            var sum1 = $('#bzfmoney').val();
            var sum2 = $('#pjmoney').val();
            var sum3 = $('#tcwmoney').val();
            var sum4 = $('#dxmoney').val();
            var sum = parseFloat(sum1) + parseFloat(sum2)+ parseFloat(sum3)+ parseFloat(sum4)+parseFloat(sumValue);
            sum = sum.toFixed(2);
            $('#sum').val(sum);
        }else{
            $('#ydmoney').val(0);
        }
    })

    $("input[name=yddj]").blur(function(){
        var value1= $('input[name=ydazlmj1]').val();
        var value2= $('input[name=ydazlmj2]').val();
        var value3= $('input[name=ydazlmj3]').val();
        var value = parseFloat(value1) + parseFloat(value2) + parseFloat(value3);
        var dxdj= $('input[name=yddj]').val();
        var sumValue= value * parseFloat(dxdj);
        sumValue = sumValue.toFixed(2);
        if(sumValue>0){
            $('#ydmoney').val(sumValue);
            var sum1 = $('#bzfmoney').val();
            var sum2 = $('#pjmoney').val();
            var sum3 = $('#tcwmoney').val();
            var sum4 = $('#dxmoney').val();
            var sum = parseFloat(sum1) + parseFloat(sum2)+ parseFloat(sum3)+ parseFloat(sum4)+parseFloat(sumValue);
            sum = sum.toFixed(2);
            $('#sum').val(sum);
        }else{
            $('#ydmoney').val(0);
        }
    })




    $("input[name=tcwmj1]").blur(function(){
        var value1= $('input[name=tcwmj1]').val();
        var value2= $('input[name=tcwmj2]').val();
        var value3= $('input[name=tcwmj3]').val();
        var value = parseFloat(value1) + parseFloat(value2) + parseFloat(value3);
        var dxdj= $('input[name=tcwdj]').val();
        var sumValue= value * parseFloat(dxdj);
        sumValue = sumValue.toFixed(2);
        if(sumValue>0){
            $('#tcwmoney').val(sumValue);
            var sum1 = $('#bzfmoney').val();
            var sum2 = $('#pjmoney').val();
            var sum3 = $('#ydmoney').val();
            var sum4 = $('#dxmoney').val();
            console.log(sum1);
            console.log(sum2);
            console.log(sum3);
            console.log(sum4);
            var sum = parseFloat(sum1) + parseFloat(sum2)+ parseFloat(sum3)+ parseFloat(sum4)+ parseFloat(sumValue);
            sum = sum.toFixed(2);
            $('#sum').val(sum);
        }else{
            $('#tcwmoney').val(0);
        }
    })

    $("input[name=tcwmj2]").blur(function(){
        var value1= $('input[name=tcwmj1]').val();
        var value2= $('input[name=tcwmj2]').val();
        var value3= $('input[name=tcwmj3]').val();
        var value = parseFloat(value1) + parseFloat(value2) + parseFloat(value3);
        var dxdj= $('input[name=tcwdj]').val();
        var sumValue= value * parseFloat(dxdj);

        sumValue = sumValue.toFixed(2);
        if(sumValue>0){
            $('#tcwmoney').val(sumValue);
            var sum1 = $('#bzfmoney').val();
            var sum2 = $('#pjmoney').val();
            var sum3 = $('#ydmoney').val();
            var sum4 = $('#dxmoney').val();
            var sum = parseFloat(sum1) + parseFloat(sum2)+ parseFloat(sum3)+ parseFloat(sum4)+parseFloat(sumValue);
            sum = sum.toFixed(2);
            $('#sum').val(sum);
        }else{
            $('#tcwmoney').val(0);
        }
    })


    $("input[name=tcwmj3]").blur(function(){
        var value1= $('input[name=tcwmj1]').val();
        var value2= $('input[name=tcwmj2]').val();
        var value3= $('input[name=tcwmj3]').val();
        var value = parseFloat(value1) + parseFloat(value2) + parseFloat(value3);
        var dxdj= $('input[name=tcwdj]').val();
        var sumValue= value * parseFloat(dxdj);

        sumValue = sumValue.toFixed(2);
        if(sumValue>0){
            $('#tcwmoney').val(sumValue);
            var sum1 = $('#bzfmoney').val();
            var sum2 = $('#pjmoney').val();
            var sum3 = $('#ydmoney').val();
            var sum4 = $('#dxmoney').val();
            var sum = parseFloat(sum1) + parseFloat(sum2)+ parseFloat(sum3)+ parseFloat(sum4)+parseFloat(sumValue);
            sum = sum.toFixed(2);
            $('#sum').val(sum);
        }else{
            $('#tcwmoney').val(0);
        }
    })

    $("input[name=tcwdj]").blur(function(){
        var value1= $('input[name=tcwmj1]').val();
        var value2= $('input[name=tcwmj2]').val();
        var value3= $('input[name=tcwmj3]').val();
        var value = parseFloat(value1) + parseFloat(value2) + parseFloat(value3);
        var dxdj= $('input[name=tcwdj]').val();
        var sumValue= value * parseFloat(dxdj);

        sumValue = sumValue.toFixed(2);
        if(sumValue>0){
            $('#tcwmoney').val(sumValue);
            var sum1 = $('#bzfmoney').val();
            var sum2 = $('#pjmoney').val();
            var sum3 = $('#ydmoney').val();
            var sum4 = $('#dxmoney').val();
            var sum = parseFloat(sum1) + parseFloat(sum2)+ parseFloat(sum3)+ parseFloat(sum4)+parseFloat(sumValue);
            sum = sum.toFixed(2);
            $('#sum').val(sum);
        }else{
            $('#tcwmoney').val(0);
        }
    })




    $("input[name=dxmj1]").blur(function(){
        var value1= $('input[name=dxmj1]').val();
        var value2= $('input[name=dxmj2]').val();
        var value3= $('input[name=dxmj3]').val();
        var value = parseFloat(value1) + parseFloat(value2) + parseFloat(value3);
        var dxdj= $('input[name=dxdj]').val();
        var sumValue= value * parseFloat(dxdj);

        sumValue = sumValue.toFixed(2);
        if(sumValue>0){
            $('#dxmoney').val(sumValue);
            var sum1 = $('#bzfmoney').val();
            var sum2 = $('#pjmoney').val();
            var sum3 = $('#ydmoney').val();
            var sum4 = $('#tcwmoney').val();
            var sum = parseFloat(sum1) + parseFloat(sum2)+ parseFloat(sum3)+ parseFloat(sum4)+parseFloat(sumValue);
            sum = sum.toFixed(2);
            $('#sum').val(sum);
        }else{
            $('#dxmoney').val(0);
        }
    })


    $("input[name=dxmj2]").blur(function(){
        var value1= $('input[name=dxmj1]').val();
        var value2= $('input[name=dxmj2]').val();
        var value3= $('input[name=dxmj3]').val();
        var value = parseFloat(value1) + parseFloat(value2) + parseFloat(value3);
        var dxdj= $('input[name=dxdj]').val();
        var sumValue= value * parseFloat(dxdj);
        sumValue = sumValue.toFixed(2);
        if(sumValue>0){
            $('#dxmoney').val(sumValue);
            var sum1 = $('#bzfmoney').val();
            var sum2 = $('#pjmoney').val();
            var sum3 = $('#ydmoney').val();
            var sum4 = $('#tcwmoney').val();
            var sum = parseFloat(sum1) + parseFloat(sum2)+ parseFloat(sum3)+ parseFloat(sum4)+parseFloat(sumValue);
            sum = sum.toFixed(2);
            $('#sum').val(sum);
        }else{
            $('#dxmoney').val(0);
        }
    })

    $("input[name=dxmj3]").blur(function(){
        var value1= $('input[name=dxmj1]').val();
        var value2= $('input[name=dxmj2]').val();
        var value3= $('input[name=dxmj3]').val();
        var value = parseFloat(value1) + parseFloat(value2) + parseFloat(value3);
        var dxdj= $('input[name=dxdj]').val();
        var sumValue= value * parseFloat(dxdj);

        sumValue = sumValue.toFixed(2);
        if(sumValue>0){
            $('#dxmoney').val(sumValue);
            var sum1 = $('#bzfmoney').val();
            var sum2 = $('#pjmoney').val();
            var sum3 = $('#ydmoney').val();
            var sum4 = $('#tcwmoney').val();
            var sum = parseFloat(sum1) + parseFloat(sum2)+ parseFloat(sum3)+ parseFloat(sum4)+parseFloat(sumValue);
            sum = sum.toFixed(2);
            $('#sum').val(sum);
        }else{
            $('#dxmoney').val(0);
        }
    })

    $("input[name=dxdj]").blur(function(){
        var value1= $('input[name=dxmj1]').val();
        var value2= $('input[name=dxmj2]').val();
        var value3= $('input[name=dxmj3]').val();
        var value = parseFloat(value1) + parseFloat(value2) + parseFloat(value3);
        var dxdj= $('input[name=dxdj]').val();
        var sumValue= value * parseFloat(dxdj);

        sumValue = sumValue.toFixed(2);
        if(sumValue>0){
            $('#dxmoney').val(sumValue);
            var sum1 = $('#bzfmoney').val();
            var sum2 = $('#pjmoney').val();
            var sum3 = $('#ydmoney').val();
            var sum4 = $('#tcwmoney').val();
            var sum = parseFloat(sum1) + parseFloat(sum2)+ parseFloat(sum3)+ parseFloat(sum4)+parseFloat(sumValue);
            sum = sum.toFixed(2);
            $('#sum').val(sum);
        }else{
            $('#dxmoney').val(0);
        }
    })

</script>
<script>
    layui.use(['layer', 'form'], function() {
        var layer = layui.layer,
            $ = layui.jquery,
            form = layui.form;
        $(window).on('load', function() {
            form.on('submit(admin)', function(data) {
                $.ajax({
                    url:"{:url('admin/anzhi/info')}",
                    data:$('#admin').serialize(),
                    type:'post',
                    async: false,
                    success:function(res) {
                        if(res.code == 1) {
                            layer.alert('提交成功！',{icon:6});
                            setTimeout(function(){
                                window.location.reload()
                            },1500);
                        }else {
                            layer.msg(res.msg);
                        }
                    }
                })
                return false;
            });
        });
    });
</script>
</body>
</html>